{extend name="public/base" /}
{block name="head"}
    <meta charset="UTF-8">
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

    <link href="__resource_path__/ui-framework/easyui-1.5.2/themes/metro/easyui-c5a176a3d4.css" rel="stylesheet" />
    <link href="__resource_path__/ui-framework/easyui-1.5.2/themes/icon-77a4ded0c8.css" rel="stylesheet" />

    <link href="__resource_path__/ui-framework/bootstrap/3.0.3/css/bootstrap-a067b6d831.min.css" rel="stylesheet" />
    <link href="__resource_path__/ui-framework/bootstrap-daterangepicker/css/daterangepicker-886dba62c4.css" rel="stylesheet" />
    <link href="__resource_path__/ui-framework/font-awesome/css/font-awesome-a81d284b37.css" rel="stylesheet" />

    <link href="__resource_path__/ui-framework/admin-lte/css/AdminLET-7d58b99a7e.css" rel="stylesheet" />
    <link href="__static_path__/css/base-dc47892812.css" rel="stylesheet" />

    <link href="__resource_path__/ui-framework/jason/searchbox/css/searchbox-398327fb84.css" rel="stylesheet" />
    <link href="__resource_path__/ui-framework/jason/pager/css/pager-f077f5e880.css" rel="stylesheet" />
    <link href="__resource_path__/ui-framework/jason/status/css/status-5f59ab3856.css" rel="stylesheet" />
    <link href="__resource_path__/ui-framework/jason/selector/css/selector-23060c280e.css" rel="stylesheet" />
    <link href="__resource_path__/ui-framework/jason/button/css/button-5ef10c798a.css" rel="stylesheet" />
    <link href="__resource_path__/ui-framework/jason/orderarrow/css/orderarrow-dcf8eba7d1.css" rel="stylesheet" />
    
    <link href="__static_path__/css/table-0e491bc98f.css" rel="stylesheet" />
    <link href="__static_path__/css/easyui-ext-372f902530.css" rel="stylesheet" />


{/block}
{block name="content"}
        <section class="content">
            <div class="container" style="width:50%;">
                <form action="" method="post" class="ajaxform">
                <div class="row">
                    <div class="col-md-12">
                        <div class="border mt20 fl" id="addPanel" style="width:500px">
                            <div class="minor-title">请填写以下帐号信息：</div>
                            <ul class="add-list filter-box">
                                <li class="clearfix">
                                    <div class="items fl">手机号：</div>
                                    <div class="fill-items fl">
                                        <input class="easyui-textbox textbox-f" id="phoneNo" maxlength="11" data-options="required:true,missingMessage:'必填',validType:length[1,10]" style="display: none;">
                                    </div>
                                </li>
                                <li class="clearfix">
                                    <div class="items fl">姓名：</div>
                                    <div class="fill-items fl">
                                        <input class="easyui-textbox textbox-f" id="realName" data-options="required:true,missingMessage:'必填'" style="display: none;">
                                    </div>
                                </li>
                                <li class="clearfix">
                                    <div class="items fl">岗位：</div>
                                    <div class="fill-items fl">
                                        <select class="easyui-combobox combobox-f combo-f textbox-f" id="roles" style="width: 131px; display: none;">
                                        {foreach $groups as $vo}
                                            <option value="{$vo.id}">{$vo.title}</option>
                                        {/foreach}
                                        </select>
                                    </div>
                                </li>
                                <li class="clearfix">
                                    <div class="items fl">限制IP：</div>
                                    <div class="fill-items fl">
                                        <input class="easyui-textbox textbox-f" id="ipLimit" maxlength="20" style="display: none;">
                                    </div>
                                </li>
                                <li class="clearfix">
                                    <div class="items fl"></div>
                                    <div class="fill-items fl">
                                        <span style="color:red">* 限制IP，是指限制该账号只能在具有指定IP的网络中登录</span>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <div class="border mt20 fl" style="width:500px">
                            <div class="minor-title">请填写以下用户信息：</div>
                            <ul class="add-list filter-box">
                                <li class="clearfix">
                                    <div class="items fl">年龄：</div>
                                    <div class="fill-items fl">
                                        <input class="easyui-textbox textbox-f" id="age" value="0" style="display: none;">
                                    </div>
                                </li>
                                <li class="clearfix">
                                    <div class="items fl">QQ：</div>
                                    <div class="fill-items fl">
                                        <input class="easyui-textbox textbox-f" id="qq" style="display: none;">
                                    </div>
                                </li>
                                <li class="clearfix">
                                    <div class="items fl">微信号：</div>
                                    <div class="fill-items fl">
                                        <input class="easyui-textbox textbox-f" id="wechatNo" style="display: none;">
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <ul class="add-list filter-box">
                            <li>
                                <div class="items fl"></div>
                                <div class="fill-items fl mt10" style="margin-left:0px">
                                    <a id="btnAddUser" href="#" class="btn-action">提交</a>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
                </form>
            </div>
        </section>
{/block}
{block name="script"}
<script src="__resource_path__/libs/jquery/jquery-1-4ed679c998.11.3.min.js"></script>
<script src="__resource_path__/libs/ajaxfileupload-20caa375ef.js"></script>
<script src="__resource_path__/ui-framework/bootstrap/3.0.3/js/bootstrap-7b3098bda9.min.js"></script>
<script src="__resource_path__/ui-framework/bootstrap-daterangepicker/js/moment-zh_cn-3d8809ccd6.js"></script>
<script src="__resource_path__/ui-framework/bootstrap-daterangepicker/js/daterangepicker-bca1a72d19.js"></script>
<script src="__resource_path__/ui-framework/admin-lte/app-bf15eda982.js"></script>

<script src="__resource_path__/ui-framework/easyui-1.5.2/jquery-623c7c7acd.easyui.min.js"></script>
<script src="__resource_path__/ui-framework/easyui/plugins/jquery-1db0d9c758.checkbox.js"></script>
<script src="__resource_path__/ui-framework/jason/searchbox/searchbox-3fc48f72fe.js"></script>
<script src="__resource_path__/ui-framework/jason/pager/pager-0646a093e8.js"></script>
<script src="__resource_path__/ui-framework/jason/status/sky-2d329149af.tools.status.js"></script>
<script src="__resource_path__/ui-framework/jason/screenshot-paste-0b91b6bd4a.js"></script>
<script src="__resource_path__/ui-framework/jason/selector/selector-a0b18d2070.js"></script>
<script src="__resource_path__/ui-framework/jason/button/button-71f76513c7.js"></script>
<script src="__resource_path__/ui-framework/jason/orderarrow/orderarrow-1bbd8bcec2.js"></script>
<script src="__resource_path__/libs/clipboard-892cfb62e7.min.js"></script>
<script src="__resource_path__/libs/template-2d62718262.js"></script>
<script src="__resource_path__/libs/jquery-d833fe9e58.cookie.js"></script>
<script src="__resource_path__/libs/common-21f077db5b.js"></script>
<script src="__resource_path__/libs/tools-4754a28493.js"></script>
<script src="__resource_path__/libs/basePage-d30d50f2ce.js"></script>

<script src="__static_path__/js/order-627da7e816.js"></script>


<script src="__resource_path__/libs/jquery/jquery.js"></script>
<script src="__static_path__/js/layer/layer.js"></script>
<script type="text/javascript">
    $().ready(function () {
        var url = $('#hdnURL').val();

        $('.sidebar .treeview').each(function (index, item) {
            var btn = $(this).children("a").first();
            var menu = $(this).children(".treeview-menu").first();

            $(this).find('a').each(function (index, item) {
                if ($(item).attr('href') == url) {
                    menu.show();
                    btn.children(".fa-angle-left").first().removeClass("fa-angle-left").addClass("fa-angle-down");
                }
            });
        });
    });

$('.layui-btn').click(function(){
    $('.ajaxform').submit();
})
$('.ajaxform').submit(function(e){
     e.preventDefault();
     var form = $(this).serialize();
     $.post('{:url("tagsedit")}',form,function(data){
           if (data.success==true) {
              layer.msg(data.errorMsg);
              window.parent.location.reload();
           }
     })
})
</script>
{/block}  